import { ElMessage } from 'element-plus'

//成功的消息框
export let $msg_s = (message,duration =2000)=>{
    ElMessage({
        showClose:true,
        message,
        duration,
        type: 'sucess',
    })
}
//警告的消息框
export let $msg_w = (message,duration =2000)=>{
    ElMessage({
        showClose:true,
        message,
        duration,
        type: 'waring',
    })
}
//错误的消息框
export let $msg_e = (message,duration =2000)=>{
    ElMessage({
        showClose:true,
        message,
        duration,
        type: 'error',
    })
}